arm/irq: Reorder check when the IRQ is already used by someone
authorOleksandr Tyshchenko <olekstysh@gmail.com>
Fri, 2 Dec 2016 16:38:16 +0000 (18:38 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Mar 2017 20:43:57 +0000 (13:43 -0700)
commitf66739326c9de51acc15e8b6b335b3781b4e3f48
treefa06f7ea66dc698f034e311aea7e2f20345c06f2
parent768b250b31361bf8acfef4b7dca61ee37c91f3f6
arm/irq: Reorder check when the IRQ is already used by someone

Call irq_get_domain for the IRQ we are interested in
only after making sure that it is the guest IRQ to avoid
ASSERT(test_bit(_IRQ_GUEST, &desc->status)) triggering.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/irq.c